﻿using System;

namespace TEST421._2
{
    class Program
    {
        //2.员工类Employee字段：姓名，工作年限，月薪、
        static void Main(string[] args)
        {
            Leader l = new Leader
            {
                year = 10,
                monthMoney = 4000
            };
            l.Calculate();
            l.Salary();
            Console.WriteLine("----------------------------------");
            Manager m = new Manager
            {
                year = 12,
                monthMoney = 6000
            };
            m.Calculate();
            m.Salary();
            Console.WriteLine("----------------------------------");
            AM am = new AM
            {
                year = 15,
                monthMoney = 8000
            };
            am.Calculate();
            am.Salary();
        }
    }
}
